SftTree/NET 2.0

OnItemReleased Method, SftTree Class

Softel vdm, Inc.

Raises the ItemReleased event.

Syntax      SftTree Class (Softelvdm.SftTreeNET)

VB   

Protected Overridable Sub OnItemReleased( _
     ByVal reason As StrategyReasonEnum, _
     ByVal e As ItemClickEventArgs )

C#   

protected virtual void OnItemReleased(
     StrategyReasonEnum reason,
     ItemClickEventArgs e );

C++   

protected: virtual void OnItemReleased(
     StrategyReasonEnum reason,
     ItemClickEventArgs^ e );

e

The event data.

reason

The reason code for this event.

StrategyReasonEnum

Value

Description

Eval

0

The size and position of visible objects is requested.

Paint

1

Rendering is requested.

MouseDown

2

A mouse button down event must be handled.

MouseDown2

3

A mouse button double-click must be handled.

MouseUp

4

A mouse button release must be handled.

Hover

5

A mouse cursor movement must be handled.

Dimensions

6

The dimensions of an object are requested.

Comments

The OnItemReleased method raises the ItemReleased event.

Raising an event invokes the event handler through a delegate.

The OnItemReleased method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

When overriding OnItemReleased in a derived class, make sure to call the base class's OnItemReleased method so that registered delegates receive the event.


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com